/**
 * 需要权限的路由
 */
import Layout from '@/layout/layoutIndex.vue'
const initDynamicRouter = [
  {
    path: `/`,
    name: `Orders`,
    component: Layout,
    children: [
      {
        path: `/Orders`,
        name: `Orders`,
        meta: {
          title: `Orders`,
        },
        component: () => import(`views/orders/OrdersIndex.vue`),
      },
    ],
  },
  {
    path: `/`,
    name: `Categories`,
    component: Layout,
    children: [
      {
        path: `/Categories`,
        name: `Categories`,
        meta: {
          title: `Categories`,
        },
        component: () => import(`views/categories/CategoriesIndex.vue`),
      },
    ],
  },
  {
    path: `/`,
    name: `Products`,
    component: Layout,
    children: [
      {
        path: `/Products`,
        name: `Products`,
        meta: {
          title: `Products`,
        },
        component: () => import(`views/products/ProductsIndex.vue`),
      },
    ],
  },
  {
    path: `/`,
    name: `Information`,
    component: Layout,
    meta: {
      title: `Other Information`,
    },
    children: [
      {
        path: `/Information/Knowledge`,
        name: `Knowledge`,
        meta: {
          title: `Knowledge`,
        },
        component: () => import(`views/information/knowledge/KnowledgeIndex.vue`),
      },
      {
        path: `/Information/Product`,
        name: `Product`,
        meta: {
          title: `Product`,
        },
        component: () => import(`views/information/product/ProductIndex.vue`),
      },
    ],
  },
]

export default initDynamicRouter
